package com.dog.dao.impl;

import com.dog.dao.TargetDateDAO;
import com.dog.model.TargetDate;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

/**
 * User: Kuttubek Aidaraliev
 * Date: 13.05.2010
 * Time: 12:16:04
 */
@Repository
public class TargetDAOImpl extends DAOImpl<TargetDate>
        implements TargetDateDAO {

    @Autowired
    private SessionFactory sessionFactory;

    public TargetDAOImpl() {
        super(TargetDate.class);
    }

    @PostConstruct
    public void initialize(){
        this.setSessionFactory(sessionFactory);
    }
}
